<?php 
defined('IN_YYS')or exit('Access Denied.');
System::DOWN_App_class('base','member','no');
System::DOWN_App_fun('my','index');
System::DOWN_App_fun('user','index');
System::DOWN_sys_fun('send');
System::DOWN_sys_fun('user');
class local extends base {
	public function __construct(){ 
		parent::__construct();
	}
	
	public function cate(){
		$biaoti="本地商铺";
		$index="i2";
		$cate_id = intval($this->segment(4));
		_setcookie('cate_id',$cate_id);
		/*增加会员定位记忆*/
		$huiyuan = $this->userinfo;
		$location=$this->db->YOne("SELECT * FROM `@#_yonghu_location` where `id` = '$huiyuan[locationId]'");
		setcookie('lng', $location['lng'],time()+2*7*24*3600);
		setcookie('lat',$location['lat'],time()+2*7*24*3600);
		include templates("mobile/index","local");
	}
}